import Mock from "mockjs";
const Random = Mock.Random;
export const mockRepercussionList = function () {
    let list = [];
    for (let i = 0; i < Random.integer(5, 11); i++) {
      const object = Mock.mock({ 
          "id|1-100": 1,
          name: "药品" + "@natural(1,100)",
          specification: '@word(5)',
          manufacturer: "@word(10)",
          usageDosage: "@word(10)",
          unit: '@unit',
          
          drugType: '@drugType',
          inventory: '@natural(100,10000)',
          drugAmount:'@natural(1,10)',
          cost: '@float(100,1000,2,2)',
          payStatus: 2002,
          deliveryStatus: 3002,
          deleted: false,
          gmtCreate: "@date(yyyy-MM-dd hh:mm:ss)",
          gmtModify: "@date(yyyy-MM-dd hh:mm:ss)",
      });
      list.push(object);
    }
  
    return {
      result: list,
      statusCode: 'C200',
      msgId: "获取处方明细大对象列表成功！",
    };
  };